import request from '@/utils/request'

export function login(account,password) {
  return request({
    url: '/api/OpUser/Login',
    method: 'post',
    params:{account,password}
  })
}

export function getInfo(token) {
  return request({
    url: '/api/OpUser/GetUserInfo',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/api/OpUser/Logout',
    method: 'post'
  })
}

